package com.di.base.common.exception;

import lombok.Data;
import java.io.Serializable;

@Data
public class BusinessException extends RuntimeException implements Serializable {
    private static final long serialVersionUID = 1L;
    private Integer code;

    public BusinessException(Integer code, String message) {
        super(message);
        this.code = code;
    }

    public BusinessException(Integer code, String message, Throwable cause) {
        super(message, cause);
        this.code = code;
    }
}